/*
 * PlanetsMap.h
 *
 *  Created on: 2011-5-5
 *      Author: Administrator
 */

#ifndef PLANETSMAP_H_
#define PLANETSMAP_H_

#include <FBase.h>

namespace Galaxy{

class Planet;
class GalaxyThread;


class PlanetsMap {
public:
	PlanetsMap(GalaxyThread* pProgressReporter, Osp::Base::Collection::ArrayList* pPlanets, int width, int height, int forecedRadius);
	virtual ~PlanetsMap();

public:
	void SavePlanet(Planet* pPlanet, int forcedRadius, byte id);
	Planet* GetPlanet(int x, int y);
public:
	Osp::Base::Collection::ArrayList* __pPlanets;
	int __width;
	int __height;
	byte* __pPixelToPlanet;
};
}


#endif /* PLANETSMAP_H_ */
